package com.agile.leetcode.rmi.service.impl;

import com.agile.leetcode.rmi.service.IService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/12/27 22:42
 */
public class ServiceImpl extends UnicastRemoteObject implements IService {
    private String name;

    @Override
    public String service(String content) throws RemoteException {
        return "service >>" + content;
    }

    public ServiceImpl(String name) throws RemoteException {
        this.name = name;
    }
}
